import request from "@/utils/request"

// 查询hotelCheckout列表
export function listHotelCheckout(query) {
  return request({
    url: "/hotelCheckout/list",
    method: "get",
    params: query
  })
}

// 分页查询hotelCheckout列表
export function listHotelCheckoutByPage(query) {
  return request({
    url: "/hotelCheckout/page",
    method: "get",
    params: query
  })
}

// 查询hotelCheckout
export function getHotelCheckout(id) {
  return request({
    url: "/hotelCheckout/" + id,
    method: "get"
  })
}

// 新增hotelCheckout
export function addHotelCheckout(data) {
  return request({
    url: "/hotelCheckout",
    method: "post",
    data: data
  })
}

// 修改hotelCheckout
export function updateHotelCheckout(data) {
  return request({
    url: "/hotelCheckout",
    method: "put",
    data: data
  })
}

// 删除hotelCheckout
export function deleteHotelCheckout(id) {
  return request({
    url: "/hotelCheckout/delete/" + id,
    method: "delete"
  })
}
